package org.example;

import java.util.concurrent.TimeUnit;

/**
 * @author liyuehui
 * @time 2024/6/3 20:25
 */
public class Product {
    public synchronized void sell() throws InterruptedException {
        TimeUnit.SECONDS.sleep(2);
        System.out.println("11111111111");
    }
    public synchronized void sell2() throws InterruptedException {
        TimeUnit.SECONDS.sleep(2);
        System.out.println("2222222222");
    }
    public void sell3() throws InterruptedException {
        TimeUnit.SECONDS.sleep(2);
        System.out.println("3333333333");
    }
}
